package com.cs.framework.web.view;

/**
 * 视图信息
 * 
 * @author hedongzhou
 * 
 */
public class ViewInfo {

	/**
	 * 视图名称
	 */
	private String viewName;

	/**
	 * 视图路径
	 */
	private String viewPath;

	/**
	 * 视图数据
	 */
	private ViewData viewData;

	public ViewInfo() {
	}

	public ViewInfo(String viewName) {
		this.viewName = viewName;
	}

	public ViewInfo(String viewName, String viewPath) {
		this.viewName = viewName;
		this.viewPath = viewPath;
	}

	public ViewInfo(String viewName, ViewData viewData) {
		this.viewName = viewName;
		this.viewData = viewData;
	}

	public ViewInfo(String viewName, String viewPath, ViewData viewData) {
		this.viewName = viewName;
		this.viewPath = viewPath;
		this.viewData = viewData;
	}

	public String getViewName() {
		return viewName;
	}

	public void setViewName(String viewName) {
		this.viewName = viewName;
	}

	public String getViewPath() {
		return viewPath;
	}

	public void setViewPath(String viewPath) {
		this.viewPath = viewPath;
	}

	public ViewData getViewData() {
		if (viewData == null) {
			viewData = new ViewData();
		}
		return viewData;
	}

	public void setViewData(ViewData viewData) {
		this.viewData = viewData;
	}

}
